class AccessLogsController < ApplicationController
  before_action :authenticate_user!

  def index
    @accessLogs = AccessLog.page(params[:page] || 1).per_page(params[:per_page] || 10).order("id desc")
  end

  def me_access_log
    @accessLogs = AccessLog.page(params[:page] || 1).per_page(params[:per_page] || 10).where(user_id: current_user.id).order("id desc")
  end
end
